package com.api.shopapi.service.impl;

import com.api.shopapi.entity.NursingSchedulingDaytimeItem;
import com.api.shopapi.mapper.NursingSchedulingDaytimeItemMapper;
import com.api.shopapi.service.NursingSchedulingDaytimeItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("NursingSchedulingDaytimeItemServiceImplOne")
public class NursingSchedulingDaytimeItemServiceImpl implements NursingSchedulingDaytimeItemService {

    @Autowired
    private NursingSchedulingDaytimeItemMapper nursingSchedulingDaytimeItemMapper;


    @Override
    public int insert(NursingSchedulingDaytimeItem nurseSchedulingDaytimeItem) {
        return nursingSchedulingDaytimeItemMapper.insert(nurseSchedulingDaytimeItem);
    }

    @Override
    public int updateByNurseSchedulingDaytimeItemCode(NursingSchedulingDaytimeItem nurseSchedulingDaytimeItem) {
        return nursingSchedulingDaytimeItemMapper.updateByNursingSchedulingDaytimeItemCode(nurseSchedulingDaytimeItem);
    }

    @Override
    public int deleteByNurseSchedulingDaytimeItemCode(String nurseSchedulingDaytimeItemCode) {
        return nursingSchedulingDaytimeItemMapper.deleteByNursingSchedulingDaytimeItemCode(nurseSchedulingDaytimeItemCode);
    }

    @Override
    public NursingSchedulingDaytimeItem getByNursingSchedulingDayTimeItemCode(String nurseSchedulingDaytimeItemCode) {
        return nursingSchedulingDaytimeItemMapper.getByNursingSchedulingDayTimeItemCode(nurseSchedulingDaytimeItemCode);
    }

    @Override
    public List<NursingSchedulingDaytimeItem> getByNursingSchedulingDayTimeCode(String nursingSchedulingDaytimeCode) {
        return nursingSchedulingDaytimeItemMapper.getListByNursingSchedulingDayTimeCode(nursingSchedulingDaytimeCode);
    }

    @Override
    public int deleteByNurseSchedulingDaytimeCode(String nursingSchedulingDaytimeCode) {
        return nursingSchedulingDaytimeItemMapper.deleteByNurseSchedulingDaytimeCode(nursingSchedulingDaytimeCode);
    }

    @Override
    public NursingSchedulingDaytimeItem getByNursingSchedulingDayTimeCodeAndNurseAideCode(String nursingSchedulingDaytimeCode, String nurseAideCode) {
        return nursingSchedulingDaytimeItemMapper.getByNursingSchedulingDayTimeCodeAndNurseAideCode(nursingSchedulingDaytimeCode,nurseAideCode);
    }

    @Override
    public NursingSchedulingDaytimeItem getByNursingSchedulingDayTimeCodeAndNurseCode(String nursingSchedulingDaytimeCode, String nurseCode) {
        return nursingSchedulingDaytimeItemMapper.getByNursingSchedulingDayTimeCodeAndNurseCode(nursingSchedulingDaytimeCode,nurseCode);
    }
}
